<?php
/**
 * Project: HTPHouDuan
 * User: xilibo
 * Date: 2018/1/25
 */

return [
    'url_route_on' => true,
    'url_route_must' => true,
    'url_param_type' => 1,
    'default_return_type' => 'json',
//	'cache'  => [
//	    'type' => 'redis',
//	    'host' => '127.0.0.1',
//	    'prefix' => '',
//	    'expire' => 3600,
//	],

    'api' => [
        'secret_key' => 'HPTSecKey(*%@)',
        'cache_code_expire' => 120, 
    ],
    // +----------------------------------------------------------------------
    // | 公用中奖 设置
    // +----------------------------------------------------------------------
    //结算奖池大小
    'win_list_len'=>1000,
    //中奖队列分布 start:区间起点(包含) end:区间终点(包含)
    //odds:区间中奖人数占总中奖人数比例，应小于(end-start)/中奖比例 且数组中总值为1
//    'win_section'=>[
//        [
//            'start'=>0.01, // 起始区间(包含)
//            'end'=>0.41,   // 结束区间(包含)
//            'odds'=>0.5,   // 区间中奖比率*总中奖比率
//        ],
//        [
//            'start'=>0.42,
//            'end'=>0.72,
//            'odds'=>0.3,
//        ],
//        [
//            'start'=>0.73,
//            'end'=>0.93,
//            'odds'=>0.2,
//        ],
//    ],
    // +----------------------------------------------------------------------
    // | 豪车飘移中奖 设置
    // +----------------------------------------------------------------------
    // 奖项倍数 奖项id从1递增
    'hcpy_option'=>[
        1=>['odds'=>2,'multiple'=>40],
        2=>['odds'=>4,'multiple'=>20],
        3=>['odds'=>4,'multiple'=>20],
        4=>['odds'=>10,'multiple'=>10],
        5=>['odds'=>20,'multiple'=>5],
        6=>['odds'=>20,'multiple'=>5],
        7=>['odds'=>20,'multiple'=>5],
        8=>['odds'=>20,'multiple'=>5],
    ],
    'allow_lose_gold'=>0.8,
    'hcpy_time_status'=>[
        1=>15,
        2=>20,
        3=>5,
    ],
    'hcpy_sys_tax'=>0.95,

    // +----------------------------------------------------------------------
    // | 水果机中奖 设置
    // +----------------------------------------------------------------------
    // 奖项=>中奖几率、倍数 奖项id从1递增
    'sgj_option'=>[
        1=>[['odds'=>1 ,'multiple'=>50],['odds'=>24,'multiple'=>25]],
        2=>[['odds'=>30,'multiple'=>20],['odds'=>80,'multiple'=>2 ]],
        3=>[['odds'=>30,'multiple'=>20],['odds'=>80,'multiple'=>2 ]],
        4=>[['odds'=>30,'multiple'=>20],['odds'=>80,'multiple'=>2 ]],
        5=>[['odds'=>45,'multiple'=>10],['odds'=>80,'multiple'=>2 ]],
        6=>[['odds'=>45,'multiple'=>10],['odds'=>80,'multiple'=>2 ]],
        7=>[['odds'=>45,'multiple'=>10],['odds'=>80,'multiple'=>2 ]],
        8=>[['odds'=>60,'multiple'=>5 ],['odds'=>80,'multiple'=>2 ]],
        9=>[['odds'=>100]],//goodLuck 随机开多个概率
        10=>[['odds'=>30]],//goodLuck 跑火车概率
    ],
    //水果机的转盘,从左上角开始记录,一个24条(开火车时候使用)
    'sgj_list'=>[
        '7_0','5_0','1_1','1_0' ,'8_0','8_1',
        '6_0','4_0','4_1','10_0','8_0','7_1',
        '7_0','5_0','2_1','2_0' ,'8_0','6_1',
        '6_0','3_0','3_1','9_0' ,'8_0','5_1',
    ],
    //猜大小赢的几率
    'sgj_dice_odds'=>0.3,
    //税率
    'sgj_sys_tax'=>1,
    // +----------------------------------------------------------------------
    // | 飞禽走兽中奖 设置
    // +----------------------------------------------------------------------
    // 奖项=>飞禽/走兽类型、中奖几率、倍数 奖项id从1递增
    'fqzs_option_odds'=>[
        1 =>['type'=>1,'odds'=>0.16  ,'multiple'=>50],
        2 =>['type'=>1,'odds'=>0.125 ,'multiple'=>50],
        3 =>['type'=>1,'odds'=>0.125 ,'multiple'=>50],
        4 =>['type'=>1,'odds'=>0.08  ,'multiple'=>50],
        5 =>['type'=>2,'odds'=>0.16  ,'multiple'=>50],
        6 =>['type'=>2,'odds'=>0.125 ,'multiple'=>50],
        7 =>['type'=>2,'odds'=>0.125 ,'multiple'=>50],
        8 =>['type'=>2,'odds'=>0.08  ,'multiple'=>50],
        9 =>['type'=>0,'odds'=>0.0035,'multiple'=>24],//蓝鲨
        10=>['type'=>0,'odds'=>0.0015,'multiple'=>100],//金鲨
        11=>['type'=>0,'odds'=>0.001],//通赔
        12=>['type'=>0,'odds'=>0.014 ,'multiple'=>0],//通吃
    ],
    // +----------------------------------------------------------------------
    // | 西游争霸中奖 设置
    // +----------------------------------------------------------------------
    // 奖项=>飞禽/走兽类型、中奖几率、倍数 奖项id从1递增
    'xyzb_option_odds'=>[
        1 =>['odds'=>0.16  ,'multiple'=>50 ],
        2 =>['odds'=>0.125 ,'multiple'=>50 ],
        3 =>['odds'=>0.125 ,'multiple'=>50 ],
        4 =>['odds'=>0.08  ,'multiple'=>50 ],
        5 =>['odds'=>0.16  ,'multiple'=>50 ],
        6 =>['odds'=>0.125 ,'multiple'=>50 ],
        7 =>['odds'=>0.125 ,'multiple'=>50 ],
        8 =>['odds'=>0.08  ,'multiple'=>50 ],
        9 =>['odds'=>0.004,'multiple'=>24 ],//蓝鲨
        10=>['odds'=>0.001,'multiple'=>100],//金鲨
        11=>['odds'=>0.001 ,'multiple'=>0  ],//通赔
        12=>['odds'=>1.014 ,'multiple'=>0  ],//通吃
    ],
];